pattern 000000 177777
